<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h = "http://java.sun.com/jsf/html">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Add a product to the shop</title>
    </h:head>
    <h:body>
        <h1>Add product!</h1>
        <hr/>

        <h:form>

            <h:panelGrid columns="2" >
                <h:outputLabel value="Name : "/>
                <h:inputText value="#{productController.product.name}" />

                <h:outputLabel value="Category : "/>
                <h:inputText value="#{productController.product.cat}" />

                <h:outputLabel value="Description : "/>
                <h:inputTextarea value="#{productController.product.desc}" cols="20" rows="5" />

                <h:outputLabel value="Price : "/>
                <h:inputText value="#{productController.product.price}" />

            </h:panelGrid>

            <h:commandButton value="Add" action="#{productController.doCreateProduct}" />



        </h:form>


    </h:body>
</html>

